# Copyright (c) 2023, json_wang and contributors
# For license information, please see license.txt

import frappe
from frappe.model.document import Document
from wxwork_en.wxwork_for_erpnext.wxwork_service import refresh_token,sync_users

class wxwork_token(Document):
	pass

	@frappe.whitelist()
	def refresh_token(self):
		refresh_token()

	@frappe.whitelist()
	def sync_users(self):
		sync_users()

